﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Bll;

namespace WebsiteAdmin.Salomon.AdInfo
{
    public partial class AdIndexList : System.Web.UI.Page
    {
        private string strCon = Global.ConSalomon;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                GetCatAdList(strCon, 3);
            }
        }
        protected void GetCatAdList(string strCon, int type)
        {
            DataTable dtAdList = Bll.CategoryAd.MULTIPLE(strCon, type);
            if (dtAdList != null && dtAdList.Rows.Count > 0)
            {
                this.repCatAdList.DataSource = dtAdList.DefaultView;
                this.repCatAdList.DataBind();
                dtAdList.Dispose();
            }
        }
    }
}
